/**
 * zoo板块首页路由，板块化功能demo
 */

var router = require('express').Router();

var indexRouter = async function(req, res) {
    if (req.url === '/' && req.originalUrl[req.originalUrl.length-1] !== '/'){
        res.redirect(req.originalUrl + '/');
        return;
    }

    res.render('./zoo/index.html');
};

router.get('/', indexRouter);

router.get('/index(.*)?', indexRouter);

module.exports = router;